<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include  file="/jsps/common/taglibs.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="<c:url value="/css/client_common.css"/>">

  </head>
  
  <body>
      <div class="wrapper_div">
          <span>查询商品信息</span>
          <div class="wrapper_div">
              <form class="search_form" action="<c:url value="indentMgr"/>">
                  <input type="hidden" name="act" value="for_list" size="10"/>
                  <span>商品名称:</span>
                  <input type="text" name="ctg_no" value="${orderName}" size="10"/>
                  &nbsp;
                  <span>类别编号:</span>
                  <input type="text" name="name" value="${startDate}" size="10"/>
                  <input type="submit" value="查 询"/>
              </form>
          </div>
      </div>
      <hr/>
      <table class="listtable">
          <tr>
              <th>商品编号</th>
              <th>商品名称</th>
              <th>商品图片</th>
              <th>商品类别</th>
              <th>商品单价</th>
              <th>库存量</th>
              <th>商品描述</th>
              <th>操作</th>
          </tr>
          <c:forEach items="${page.pageContent}" var="goods">
              <tr>
                  <td>${goods.goodsNo}</td>
                  <td>${goods.goodsName}</td>
                  <td><img alt="商品照片" width="120px" height="90px" src="<c:url value="/goodsMgr?act=get_pic&g_no=${goods.goodsNo}"/>"/></td>
                  <td>${goods.categoryNo}</td>
                  <td>${goods.goodsPrice }</td>
                  <td>${goods.cnt }</td>
                  <td>${goods.goodsMemo }</td>
                  <td>
                      <button onclick="">修 改</button>
                      <button onclick="">删 除</button>
                  </td>
              </tr>
          </c:forEach>
      </table>
      <div class="page_infos">
	            共${page.totalRecNum}条, 当前显示${page.startIndex}-${page.endIndex}条, 第${page.pageNo}/${page.totalPageNum}页
	           |
	           <c:if test="${page.pageNo>1}">
	             <span class="linkspan" onclick="doQuery(1)">首页</span>&nbsp;
	           </c:if>
	           <c:if test="${page.prePage}">
	             <span class="linkspan" onclick="doQuery(${page.pageNo-1})">上一页</span>&nbsp;
	           </c:if>
	           <c:if test="${page.nextPage}">
	             <span class="linkspan" onclick="doQuery(${page.pageNo+1})">下一页</span>&nbsp;
	           </c:if>
	           <c:if test="${page.pageNo!=page.totalPageNum}">
	             <span class="linkspan" onclick="doQuery(${page.totalPageNum})">末页</span>&nbsp;
	           </c:if>
	           |
	            到<input type="text" id="pageNo" size=4 style="text-align:right;" onkeypress="onlynumber();"/> 页
	         <!--  <button onclick="doQuery($('pageNo').value);">跳 转</button>	 -->           		           	           	              
	  </div>
      <c:if test="${empty page.pageContent}">
          <div class="no_found" style="color:red">
              sorry,无法查找到您所要求的套房信息.......
          </div>
      </c:if>
  </body>
</html>
